# -*- coding:utf-8 -*-
# @FileName :config.py.py
# @Created  :2024/6/11
# @Author   :天空之城
import os

# 项目目录
BASEDIR = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))  # 项目目录
PROJECT_NAME = BASEDIR.split(os.path.sep)[-1]  # 项目名称

# 操作系统类型
is_Windows = True if os.name == 'nt' else False

# 屏幕分辨率
SCREEN_RESOLUTION = (1920, 1080)

# 操作延迟
OPERATION_DELAY = 1.0

# 原子清单路径
ATOMIC_LIST_PATH = os.path.join(BASEDIR, 'config', 'atomic_list.json')

# 截图路径
ICON_DIR = os.path.join(BASEDIR, 'assets', 'icon')
SCREENSHOTS_DIR = os.path.join(BASEDIR, 'assets', 'screenshots')
REFERENCE_DIR = os.path.join(SCREENSHOTS_DIR, 'reference')
PROCESS_DIR = os.path.join(SCREENSHOTS_DIR, 'process')

# 脚本目录
SCRIPTS_DIR = os.path.join(BASEDIR, 'scripts')

# 日志目录
LOGS_DIR = os.path.join(BASEDIR, 'logs')
LOG_FILE = os.path.join(LOGS_DIR, 'app.log')

# CnOCR模型路径
CNOCR_MODEL_PATH = os.path.join(BASEDIR, 'app', 'models')

# 计算机视觉模型路径
COMPUTER_VISION_MODEL_PATH = os.path.join(BASEDIR, 'app', 'computer_vision', 'models')

# 大模型API配置
LARGE_MODEL_API_KEY = 'api_key'
LARGE_MODEL_API_URL = 'https://openai.com/'
